package com.jh.browser.adapter;

import com.jh.browser.bean.SearchHistoryBean;
import com.jh.browser.holder.MyBaseViewHolder;
import com.jh.browser.holder.SearchHistoryViewHolder;

import java.util.ArrayList;

public class SearchHistoryAdapter extends MyBaseAdapter<SearchHistoryBean> {
    public SearchHistoryAdapter(ArrayList data) {
        super(data);
    }

    @Override
    public void initView(SearchHistoryBean item, MyBaseViewHolder viewHolder) {
        SearchHistoryViewHolder vh = (SearchHistoryViewHolder) viewHolder;
        vh.tv_search.setText(item.search);
    }

    @Override
    public SearchHistoryViewHolder getHolder() {
        return new SearchHistoryViewHolder();
    }
}
